<Window x:Class="SalesPoint.Views.LoginView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:w="clr-namespace:SalesPoint.Helpers"
        Title="Log in to SalesPoint"
        Height="237"
        Width="391"
        WindowStartupLocation="CenterScreen"
        ResizeMode="NoResize"
        Icon="/SalesPoint;component/Resources/Icon.ico">
    <Grid>
        <Label Content="Log in as"
               Height="28"
               HorizontalAlignment="Left"
               Margin="18"
               Name="label1"
               VerticalAlignment="Top" />
        <ComboBox Height="46"
                  Margin="110,18,18,0"
                  Name="comboBox1"
                  VerticalAlignment="Top"
                  ItemsSource="{Binding Employees}"
                  SelectedValuePath="Id"
                  SelectedItem="{Binding Employee}">
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <Image Source="{Binding PhotoImage}"
                               Margin="1"></Image>
                        <StackPanel Orientation="Vertical"
                                    Margin="5">
                            <TextBlock FontWeight="Bold">
                                <Run Text="{Binding FirstName}" />
                                <Run Text="{Binding LastName}" />
                            </TextBlock>
                            <TextBlock>
                                <Run Text="{Binding Title}" />
                                <Run Text="," />
                                <Run Text="{Binding Path=Address.City}" />
                            </TextBlock>
                        </StackPanel>
                    </StackPanel>
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>
        <Label Content="Username"
               Height="28"
               HorizontalAlignment="Left"
               Margin="18,75,0,0"
               VerticalAlignment="Top" />
        <TextBox Height="23"
                 Margin="110,75,18,18"
                 VerticalAlignment="Top"
                 IsEnabled="False"
                 Text="{Binding Path=Employee.Name}" />
        <Label Content="Password"
               Height="28"
               HorizontalAlignment="Left"
               Margin="18,113,0,0"
               VerticalAlignment="Top" />
        <PasswordBox Height="23"
                     Margin="110,113,18,18"
                     VerticalAlignment="Top"
                     IsEnabled="False"
                     w:PasswordHelper.Attach="True"
                     w:PasswordHelper.Password="{Binding Path=Employee.PasswordHash}" />
        <Button Content="Log in"
                Margin="18"
                HorizontalAlignment="Right"
                Height="23"
                VerticalAlignment="Bottom"
                IsDefault="True"
                Command="{Binding Path=LoginCommand}"
                Width="60" />
    </Grid>
</Window>